<?	
/**
 * @author Nguyen Xuan Hong
 * @copyright 2010
 */

$listBranch = $pClsBranch->listobj();
if($listBranch)
{
?>
<div class="w220">
	<div id="accordions_left">
	<?
		$first = 0;
		foreach($listBranch as $branch)
		{
			$first++;				
			if($branch->attList["id"]['value'] == 1) 	 
			{
				$bgcolor1 = "#fc2ed0"; 
				$bgcolor2 = "#ffe6df";
			}
			else if($branch->attList["id"]['value'] == 2) 
			{
				$bgcolor1 = "#98e04e"; 
				$bgcolor2 = "#eafddd";
			}
			else if($branch->attList["id"]['value'] == 3) 
			{
				$bgcolor1 = "#5f87e6"; 
				$bgcolor2 = "#e4ebfa";
			}
			$branch_name = $branch->value("name");
			$branch_id = $branch->value("id");
	?>
		<a >
			<? if($first>1)
			{
			?> 
			<table>
				<tr>
					<td class="h10">
					</td>
				</tr>
			</table>
			<?
			}
			?>
			<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9" bgcolor="<? echo($bgcolor1); ?>">
				<tr>
					<td class="lr_menu w220 h31 uppercase pointer" align="center">
						<?php echo($branch_name); ?>
					</td>
				</tr>
			</table>
		</a>
		<div>
			<div >
				<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 notop" bgcolor="<? echo($bgcolor2); ?>">
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td class="h24 w220">
										<a class="lr_menu_item" href="?page=intro&branch=<? echo($branch_id); ?>">◦ Giới thiệu</a>
									</td>
								</tr>
								<tr>
									<td class="h24 w220">
										<a class="lr_menu_item" href="?page=lesson&branch=<? echo($branch_id); ?>">◦ Các bài học của bé</a>
									</td>
								</tr>
								<tr>
									<td class="h24 w220">
										<a class="lr_menu_item" href="?page=menu&branch=<?php echo($branch_id); ?>">◦ Thực đơn của bé</a>
									</td>
								</tr>
								<tr>
									<td class="h24 w220">
										<a class="lr_menu_item" href="?page=picture&branch=<? echo($branch_id); ?>">◦ Thư viện ảnh của bé</a>
									</td>
								</tr>
								<tr>
									<td class="h24 w220">
										<a class="lr_menu_item" href="?page=video&branch=<? echo($branch_id); ?>">◦ Video clip của bé</a>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	<?
	}
?>
	</div> 
	<script>
		$(function() 
		{
			$("#accordions_left").accordion({autoHeight: false,navigation: true});
		});
	</script>
</div>
<? 
}
?>
<div class="h10"> </div>
<div class="w220">
	<div id="accordions_left" >
		<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 bgf8981d">
			<tr>
				<td class="lr_menu w220 h31 uppercase pointer"  align="center">
					GÓC CHA MẸ
				</td>
			</tr>
		</table>
		<div>
			<div >
				<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 notop bgf9c583">
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td class="h24 w220">
									<a class="lr_menu_item" href="?page=inform">• Thông báo hoạt động</a>
								</td>
							</tr>
							<tr>
								<td class="h24 w220">
									<a class="lr_menu_item" href="?page=discuss">• Trao đổi với phụ huynh</a>
								</td>
							</tr>
							<tr>
								<td class="h24 w220">
									<a class="lr_menu_item" href="?page=comment">• Ý kiến của phụ huynh</a>
								</td>
							</tr>
							<tr>
								<td class="h24 w220">
									<a class="lr_menu_item" href="?page=charges">• Các khoản thu</a>
								</td>
							</tr>
							<tr>
								<td class="h24 w220">
									<a class="lr_menu_item" href="?page=forms">• Các mẫu đơn xin học</a>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				</table>
			</div>
			<div style="height:5">
			</div>
		</div>
	</div> 
</div>

<div style="height: 5px">
</div>
<div style="background-image:url(images/camera_bg.png)">
<table cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td height="50" valign="middle">
			<a href="?page=camera" class="mainlevel-top">
				<img src="images/camera.png" width="45" height="35" alt="" title="Cơ sở 1">
			</a>
		</td>
		<td height="50">
			<a href="?page=camera" class="mainlevel-top">
				CAMERA ONLINE
			</a>
		</td>
	</tr>
</table>
</div>
</div>
<div style="height: 5px">
</div>
<div style="background-image:url(images/help_bg.png)">
<table cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td height="40" valign="middle">
			<img src="images/yahoo.png" width="26" height="26" style="padding-left:10px;">
		</td>
		<td height="40">
			<a href="ymsgr:sendim?ngoinha_tretho">
			<img src="http://opi.yahoo.com/online?u=ngoinha_tretho&amp;m=g&amp;t=2&amp;l=us" border="0" style="padding-left:10px;">
			</a>
		</td>
	</tr>
	<tr>
		<td height="40" valign="middle">
			<img src="images/phone.png" width="26" height="25" style="padding-left:10px;">
		</td>
		<td height="40">
			<div style="padding-left:10px;">
				(04)36401549
			</div>
		</td>
	</tr>
	<tr>
		<td height="40" valign="middle">
			<a href="mailto:ngoinha_tretho@yahoo.com.vn" target="_blank">
				<img src="images/email.png" width="25" height="25" style="padding-left:10px;">
			</a>
		</td>
		<td height="40">
			<a href="mailto:ngoinha_tretho@yahoo.com.vn" target="_blank" >
				<div style="padding-left:10px;">
				ngoinha_tretho
				@yahoo.com.vn
				</div>
			</a>
		</td>
	</tr>
</table>
</div>
<div style="height: 5px">
</div>
<div class="w220">
	<div id="accordions_left" >
		<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 bgf8981d">
			<tr>
				<td class="lr_menu w220 h31 uppercase pointer"  align="center">
					THỐNG KÊ
				</td>
			</tr>
		</table>
		<div>
			<div >
				<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 notop bgf9c583">
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td class="h24 w220 lr_menu_item">
									<div style="height:20px">
									</div>
									Tổng số lượt truy cập : <? echo($pageconfig->value('counter')); ?>
									<div style="height:20px">
									</div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				</table>
			</div>
			<div style="height:5">
			</div>
		</div>
	</div> 
</div>